package com.bestcem.xm.user.util.convert;

import com.bestcem.xm.user.controller.param.CreateBookingParam;
import com.bestcem.xm.user.entity.mysql.WhitepaperSubscribe;
import com.bestcem.xm.user.entity.pojo.WhitepaperSubscribeDO;
import org.mapstruct.Mapper;

/**
 * 白皮书预约转换类
 *
 * @author zhangfeng <feng.zhang@idiaoyan.com>
 * @version v1.0
 * @date 2022/7/14 22:10
 */
@Mapper(componentModel = "spring")
public interface WhitepaperSubscribeConvert {
    WhitepaperSubscribeDO param2Do(CreateBookingParam param);

    WhitepaperSubscribeDO mysqls2Do(WhitepaperSubscribe whitepaperSubscribe);

    WhitepaperSubscribe do2Mysql(WhitepaperSubscribeDO whitepaperSubscribeDO);
}
